﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的账户_来加体检网</title>
    <meta name="Keywords" content="来加体检网">
    <meta name="Description" content="来加体检网">
    <meta name="applicable-device" content="mobile">
    <meta name="location" content="province=福建;city=福州">
    <!-- 移动设备支持 -->
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <!--<meta name="apple-mobile-web-app-capable" content="yes"> -->
    <!--<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">-->
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <!--<meta name="x5-fullscreen" content="true">-->

    <link href="Public/mobile/css/common.css?64" rel="stylesheet" type="text/css">
    <link href="Public/mobile/css/new.css?65" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layer/need/layer.css" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layerModel/layerModel.css" rel="stylesheet" type="text/css">

    <link href="Public/mobile/css/login.css" rel="stylesheet" type="text/css">

    <script src="../Scripts/jquery-1.8.3.min.js"></script>
    <script>
            
        
        $(document).ready(function () {
            $.ajax({
                type: "get",
                url: "/Api/GetId",
                data: {
                    id: 9999
                },
                success: function (d) {
                   
                    $(d).each(function (i, obj) {
                        var tr = "<input class='zl-input'  id="+obj.id+" value=" + obj.Name + " type='text' name='nickname' placeholder='请输入昵称'>";
                        $(".in-cont").append(tr);
                    })
                }

            });

        });

        function updWX() {
            var Name = $(".zl-input").val();
            if (Name == "") {
                alert("请输入名称！");
                return;

            };
            
            //此处ajax传值到WXtest.aspx后台进行代码处理
            $.ajax({
                type: "get",   //传值方式
                url: "/Api/UpdateName",   //后台处理地址
                data: {
                    name: Name,
                    id:1
                },  //参数
                success: function (d) {    //返回信息，关键在于如何得到？？？
                    if (d ==true) {
                        alert("修改成功");
                        location.href = 'edit_my_info.html';

                    }
                    else
                    {
                        alert("修改失败");
                    }
                }

            });
        }

    </script>

</head>
<body>
    <header class="header">
        <a class="fh_btn" href="javascript:;"></a>
        <h2>设置昵称</h2>
        <a class="hom_icon" href="/"></a>
    </header>
    <div style="height:50px"></div>

    <form id="userinfo_form">
        <div class="userbox">
            <div class="in-cont">
                <!--<input class="zl-input" value="15010222570" type="text" name="nickname" placeholder="请输入昵称">-->

                <p class="ts_t">昵称限4-16个字符，一个汉字两个字符</p>
            </div>
            <a class="zlbc_btn" href="javascript:void(0);" id="save_info" onclick="updWX()">保存</a>
        </div>
    </form>

    <script type="text/javascript">
        // 定义一些常量
        var __appId = "";			        // 必填，公众号的唯一标识
        var __timestamp = ""; 	// 必填，生成签名的时间戳
        var __nonceStr = ""; 		// 必填，生成签名的随机串
        var __signature = "";	// 必填，签名，见附录1
        var __public = '/Public';
        var __baiduak = "FE5a0df097aaacb5b50fe2c75fd2de0f";
        var __refererType__ = "normal";
        var __indexUrl__ = "/";//默认的首页地址,即当返回到顶层时的地址
    </script>
    <script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <!-- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> -->
    <script type="text/javascript" src="Public/mobile/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layer/layer.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layerModel/jquery.layerModel.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.scrollLoading.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.cookie.js"></script>
    <script type="text/javascript">
        if (__refererType__ == "weixin") {
            document.write('<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
        }
    </script>
    <script type="text/javascript" src="Public/mobile/js/common.js?72"></script>

    <script type="text/javascript" src="Public/mobile/js/member.js"></script>
    <script type="text/javascript">
        //解析事sem推广
        var hash = location.hash;
        var reg = new RegExp("sem_(bd|360|sg|jt|sm)_(.*)?");
        if (reg.test(hash)) {
            var matchs = reg.exec(hash);
            $.get("/Sem/submit", { channel: matchs[1], keys: matchs[2] }, function () {
            });
        }
    </script>
    <div style="display:none">
        <!--统计代码-->
        <img src="http://c.cnzz.com/wapstat.php?siteid=1253083248&r=http%3A%2F%2Fm.viptijian.com%2FMember%2Fedit_my_info.html&rnd=233735029" width="0" height="0" />    <!--百度统计代码-->
        <img src="http://hm.baidu.com/hm.gif?si=e23220b7e728f5512d935dd4b95e539d&amp;et=0&amp;nv=0&amp;st=4&amp;lt=1478536673&amp;su=http%3A%2F%2Fm.viptijian.com%2FMember%2Fedit_my_info.html&amp;v=wap-0-0.2&amp;rnd=5023079298" width="0" height="0" />
    </div>
    <script type="text/javascript">
        // 新的百度统计代码
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?da5f5c0399ed040f41e88552ab48d766";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <!--腾讯统计代码-->
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=58654145" charset="UTF-8"></script>
</body>
</html>